<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>

<body>
  <script>
    const num = 100
    console.log(num)   // number型
    console.log(String(num))    // 强制转换 字符串 100
    console.log(num.toString())  // 黑色的  100  字符串
  </script>
</body>

</html>